package strategy;

import java.math.BigDecimal;

public class Order{
    public static void main(String[] args) {

        Cashier cashier = new Cashier(new ExclusiveVIP());
        BigDecimal ExclusiveVIPPrice = cashier.pay(BigDecimal.valueOf(100L));
        System.out.println(ExclusiveVIPPrice);

        cashier = new Cashier(new SVIP());
        BigDecimal SVIPPrice = cashier.pay(BigDecimal.valueOf(100L));
        System.out.println(SVIPPrice);

        cashier = new Cashier(new VIP());
        BigDecimal VIPPrice = cashier.pay(BigDecimal.valueOf(100L));
        System.out.println(VIPPrice);

    }

}
